

import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'

import home from '../components/home.vue'
import login from '../components/login.vue'
import register from '../components/register.vue'
import school from '../components/school.vue'
import classs from '../components/classs.vue'

var routes = [
  {
    path: '/',
    name: 'home',
    component: home,
    children: [

    ]
  },
  {
    path: '/login',
    name: 'login',
    component: login,
  },
  {
    path: '/register',
    name: 'register',
    component: register,
  },
  {
    path: '/school',
    name: 'school',
    component: school,
  },
  {
    path: '/classs',
    name: 'classs',
    component: classs,
  },
]


const router = new createRouter({
  history: createWebHistory(), // history为必填项
  //history:createWebHashHistory(),
  routes,
})

export {
  router
}


